<script setup lang="ts">
import { useRoute } from 'vue-router';

// 获取组件路由对象
const route = useRoute();
console.log('route', route);
console.log('基本路径信息', route.path);
console.log('完整路径信息', route.fullPath);
</script>
<template>
  <h1>Home 主页</h1>
</template>
